
<div class="fui-page fui-page-current"  style="background:#fff">
	
	<div class="fui-content order-list">
		<div class="fui-tab-scroll">
			<div class='container type-2'>
				<span ng-class="{'item':1, 'on':pagedata.op =='main'}" ng-click="access_json('main')">我的收藏</span>
			</div>
		</div>
		<div class="fui-cell-group fui-comment-group">	
				<div class="fui-cell">
					<div class="fui-cell-h3" ng-if="pagedata.op =='main'">{{pagedata.sum || 0}}个收藏</div>
				</div>
				<div ng-repeat="m in pagedata.list" class="fui-cell fui-cell-click noborder">
					<div href="javascript;" ng-click="access_json('jy_zhongchou/p_detail/main/id='+m.pid)" class="fui-cell-icon" style="width:46px;margin-top:-10px"><img class="img-circle" ng-src="{{tomedia(m.project.image) || '../core/resource/images/gw-user.png'}}" style="width:46px;height:46px" /></div>
					<div href="javascript;" class="fui-cell-text desc">
						<div class="fui-cell noborder" style="padding:0.25rem">
							<div ng-click="access_json('jy_zhongchou/p_detail/main/id='+m.pid)" class="fui-cell-text" style="color:#f60">{{m.project.title || '无标题'}}</div>
							<div class="fui-cell-text r"><span class="jylabel jylabel-red active" href="javascript;" ng-click="pagedata.setfollow(m.id);m.isfollowtoo=1">取消收藏</span></div>
						</div>
						<div ng-click="access_json('jy_zhongchou/p_detail/main/id='+m.pid)" class="fui-cell noborder padding03" style="padding:0.25rem;padding-top:0">
							<div class="fui-cell-text" style="color:#000">
								{{m.status}}
							</div>
						</div>
						<div ng-click="access_json('jy_zhongchou/p_detail/main/id='+m.pid)" class="fui-cell noborder padding03" style="padding:0.25rem">
							<div class="fui-cell-text" style="font-size:0.5rem">
								目标金额：{{m.project.goalmoney || 0.00}}元
								已筹金额：{{m.project.getmoney || 0.00}}元
								提现金额：{{m.project.txmoney || 0.00}}元

							</div>
						</div>
					</div>
				</div>
		</div>
		<div ng-show="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
//取消收藏
scope.pagedata.setfollow=function(id){
	var params={
		data:{'id':id},
		op:'unfollow',
		callback:function(res){
			console.log(res);
			if(res.ok==1){
			scope.message('取消收藏成功！');
			scope.$evalAsync();
			}else{
			scope.message('取消收藏失败！');
			}
			window.location.reload();
		}
	};
	scope.post_json(params);
}
</script>